<extend name="Public/base"/>

<block name="body">
    <div class="main-title">
        <h2>新增期货合约</h2>
    </div>
    <form action="{:U()}" method="post" class="form-horizontal">
        <div class="form-item">
            <label class="item-label">期货名称<span class="check-tips"></span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="name" value="">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">期货代码<span class="check-tips"></span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="code" value="">
            </div>
        </div>
         <div class="form-item">
            <label class="item-label">做市商<span class="check-tips"></span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="maker" value="">
            </div>
        </div>
         <div class="form-item">
            <label class="item-label">期货总量<span class="check-tips"></span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="total" value=""><span>手</span>
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">价格<span class="check-tips"></span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="price" value=""><span>元</span>
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">权利金<span class="check-tips"></span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="premium" value=""><span>元</span>
            </div>
        </div>
          <div class="form-item">
            <label class="item-label">止损值<span class="check-tips"></span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="stop_loss" value=""><span></span>
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">期货类型标识<span class="check-tips"></span></label>
            <div class="controls">
            <select name="type_sign">
            	<option selected  value="commodity">商品期货</option>
                <option value="stock">股指期货</option>
            </select>               
            </div>
        </div>
         <div class="form-item">
            <label class="item-label">权限<span class="check-tips"></span></label>
            <div class="controls">
            <select name="authority_status">
            	<option value="1">有</option>
                <option selected value="0">无</option>
            </select>               
            </div>
        </div>
         <div class="form-item">
            <label class="item-label">开始时间<span class="check-tips"></span></label>
            <div class="controls">
                <input type="text" id="begin_time" class="text input-large" name="begin_time" value="">
            </div>
        </div>
         <div class="form-item">
            <label class="item-label">结束时间<span class="check-tips"></span></label>
            <div class="controls">
                <input type="text" id="end_time" class="text input-large" name="end_time" value="">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">期货状态<span class="check-tips"></span></label>
            <div class="controls">
            <select name="status">
                <option value="0">关闭</option><option value="1" selected="">开启</option></select>               
            </div>
        </div>
        <div class="form-item">
            <button class="btn submit-btn ajax-post" id="submit" type="submit" target-form="form-horizontal">确 定</button>
            <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
        </div>
    </form>
</block>

<block name="script">
<link href="__STATIC__/datetimepicker/css/datetimepicker.css?v={:SITE_VERSION}" rel="stylesheet" type="text/css">
<php>if(C('COLOR_STYLE')=='blue_color') echo '<link href="__STATIC__/datetimepicker/css/datetimepicker_blue.css?v={:SITE_VERSION}" rel="stylesheet" type="text/css">';</php>
<link href="__STATIC__/datetimepicker/css/dropdown.css?v={:SITE_VERSION}" rel="stylesheet" type="text/css">
<script type="text/javascript" src="__STATIC__/datetimepicker/js/bootstrap-datetimepicker.min.js"></script>
<script type="text/javascript" src="__STATIC__/datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js?v={:SITE_VERSION}" charset="UTF-8"></script>
<script type="text/javascript">
        $('#begin_time,#end_time').datetimepicker({
            format: 'yyyy-mm-dd h:i:s',
            language:"zh-CN",
            minView:2,
            autoclose:true,
        });
        //导航高亮
        $('.side-sub-menu').find('a[href="{:U('Futures/index')}"]').closest('li').addClass('current');
    </script>
</block>
